-- GENERATED SPELL FOR [Primordial Behemoth] --


function spell0_12206(pUnit, Event) --@Boulder,Self--
pUnit:FullCastSpellOnTarget(21071,pUnit)
pUnit:RegisterEvent('Sorts_12206', 2000, 1)
end

function spell1_12206(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_12206', 624, 1)
end

function Sorts_12206(pUnit, Event)
local choix_sorts_12206 = math.random(0, 1)
if choix_sorts_12206 == 0 then
pUnit:RegisterEvent('spell0_12206', 1, 1)
end
if choix_sorts_12206 == 1 then
pUnit:RegisterEvent('spell1_12206', 1, 1)
end
end

function mob12206_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12206', math.random(1500, 3000), 1)
end

function mob12206_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12206_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12206_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12206, 1, 'mob12206_Action')
RegisterUnitEvent(12206, 2, 'mob12206_Leave')
RegisterUnitEvent(12206, 3, 'mob12206_Kill')
RegisterUnitEvent(12206, 4, 'mob12206_Die')
